﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Windows.Storage;

namespace Conqueror.WP.View
{
    public partial class TapToOpenGame : UserControl
    {
        public TapToOpenGame()
        {
            InitializeComponent();
            InnerRingAnimation.Begin();
            TestTutorialRing();
        }

        private void TestTutorialRing()
        {
            bool? hasSeenTutorialRing = ApplicationData.Current.LocalSettings.Values["game_tutorial_ring"] as bool?;
            if (!hasSeenTutorialRing.HasValue || !hasSeenTutorialRing.Value)
            {
                ApplicationData.Current.LocalSettings.Values["game_tutorial_ring"] = true;
            }
            else
            {
                this.Visibility = System.Windows.Visibility.Collapsed;
            }
            //IsolatedStorageSettings.ApplicationSettings["game_tutorial_ring"];
        }
    }
}
